package com.neu.canteen.service.impl;

import java.util.List;

import com.neu.canteen.dao.FoodTypeDao;
import com.neu.canteen.dao.impl.FoodTypeDaoImpl;
import com.neu.canteen.domain.FoodType;
import com.neu.canteen.service.FoodTypeService;

public class FoodTypeServiceImpl implements FoodTypeService{

	private FoodTypeDao foodTypeDao;
	
	public FoodTypeServiceImpl(){
		this.foodTypeDao = new FoodTypeDaoImpl();
	}
	@Override
	public List<FoodType> findAll() {
		return foodTypeDao.findAll();
	}
	public int add(FoodType foodType){
		return foodTypeDao.add(foodType);
	}
	@Override
	public int deleteFoodTypeId(int id) {
	// TODO Auto-generated method stub
	return foodTypeDao.deleteFoodTypeId(id);
	}
	public int updataFoodtype(FoodType foodType){
		return foodTypeDao.updataFoodtype(foodType);
	}
}
